package com.yt.system.domain;

public class User {
    private Integer uid;

    private String img;

    private String uname;

    private Integer usex;

    private String ubirthday;

    private String uphone;

    private String uemail;

    private Integer sid;

    private String uentrytime;

    private String hostel;

    private String uleavetime;

    private String ualtertime;

    private Subject subject;

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public User() {}

    public User(Integer uid, String img, String uname, Integer usex, String ubirthday, String uphone, String uemail, Integer sid, String uentrytime, String hostel, String uleavetime, String ualtertime, Subject subject) {
        this.uid = uid;
        this.img = img;
        this.uname = uname;
        this.usex = usex;
        this.ubirthday = ubirthday;
        this.uphone = uphone;
        this.uemail = uemail;
        this.sid = sid;
        this.uentrytime = uentrytime;
        this.hostel = hostel;
        this.uleavetime = uleavetime;
        this.ualtertime = ualtertime;
        this.subject = subject;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname == null ? null : uname.trim();
    }

    public Integer getUsex() {
        return usex;
    }

    public void setUsex(Integer usex) {
        this.usex = usex;
    }

    public String getUbirthday() {
        return ubirthday;
    }

    public void setUbirthday(String ubirthday) {
        this.ubirthday = ubirthday == null ? null : ubirthday.trim();
    }

    public String getUphone() {
        return uphone;
    }

    public void setUphone(String uphone) {
        this.uphone = uphone == null ? null : uphone.trim();
    }

    public String getUemail() {
        return uemail;
    }

    public void setUemail(String uemail) {
        this.uemail = uemail == null ? null : uemail.trim();
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getUentrytime() {
        return uentrytime;
    }

    public void setUentrytime(String uentrytime) {
        this.uentrytime = uentrytime == null ? null : uentrytime.trim();
    }

    public String getHostel() {
        return hostel;
    }

    public void setHostel(String hostel) {
        this.hostel = hostel == null ? null : hostel.trim();
    }

    public String getUleavetime() {
        return uleavetime;
    }

    public void setUleavetime(String uleavetime) {
        this.uleavetime = uleavetime == null ? null : uleavetime.trim();
    }

    public String getUaltertime() {
        return ualtertime;
    }

    public void setUaltertime(String ualtertime) {
        this.ualtertime = ualtertime == null ? null : ualtertime.trim();
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", img='" + img + '\'' +
                ", uname='" + uname + '\'' +
                ", usex=" + usex +
                ", ubirthday='" + ubirthday + '\'' +
                ", uphone='" + uphone + '\'' +
                ", uemail='" + uemail + '\'' +
                ", sid=" + sid +
                ", uentrytime='" + uentrytime + '\'' +
                ", hostel='" + hostel + '\'' +
                ", uleavetime='" + uleavetime + '\'' +
                ", ualtertime='" + ualtertime + '\'' +
                ", subject=" + subject +
                '}';
    }
}